home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / TGKI-109 / Games / bounce_crusher.swf / scripts / frame_40 / DoAction.as
Text File  |  2010-11-09  |  2KB  |  98 lines

  1. stop();
  2. removeAllClips();
  3. _root.onEnterFrame = function()
  4. {
  5.    back3._x = -440 + _xmouse / 1.5;
  6.    back2._x = -300 + _xmouse / 4;
  7.    back1._x = -230 + _xmouse / 8;
  8. };
  9. menuButton.onRollOver = function()
  10. {
  11.    this._xscale = 120;
  12.    this._yscale = 120;
  13. };
  14. menuButton.onRollOut = function()
  15. {
  16.    this._xscale = 100;
  17.    this._yscale = 100;
  18. };
  19. menuButton.onPress = function()
  20. {
  21.    _root.gotoAndStop("menuScreen");
  22. };
  23. sound_button_on.onPress = function()
  24. {
  25.    _root.sound_on = true;
  26. };
  27. sound_button_off.onPress = function()
  28. {
  29.    _root.sound_on = false;
  30. };
  31. sound_button_on.onEnterFrame = function()
  32. {
  33.    if(_root.sound_on == true)
  34.    {
  35.       this._alpha = 100;
  36.    }
  37.    else
  38.    {
  39.       this._alpha = 25;
  40.    }
  41. };
  42. sound_button_off.onEnterFrame = function()
  43. {
  44.    if(_root.sound_on == true)
  45.    {
  46.       this._alpha = 25;
  47.    }
  48.    else
  49.    {
  50.       this._alpha = 100;
  51.    }
  52. };
  53. quality_button_low.onPress = function()
  54. {
  55.    _root.game_quality = "LOW";
  56. };
  57. quality_button_low.onEnterFrame = function()
  58. {
  59.    if(_root.game_quality == "LOW")
  60.    {
  61.       this._alpha = 100;
  62.    }
  63.    else
  64.    {
  65.       this._alpha = 25;
  66.    }
  67. };
  68. quality_button_medium.onPress = function()
  69. {
  70.    _root.game_quality = "MEDIUM";
  71. };
  72. quality_button_medium.onEnterFrame = function()
  73. {
  74.    if(_root.game_quality == "MEDIUM")
  75.    {
  76.       this._alpha = 100;
  77.    }
  78.    else
  79.    {
  80.       this._alpha = 25;
  81.    }
  82. };
  83. quality_button_high.onPress = function()
  84. {
  85.    _root.game_quality = "HIGH";
  86. };
  87. quality_button_high.onEnterFrame = function()
  88. {
  89.    if(_root.game_quality == "HIGH")
  90.    {
  91.       this._alpha = 100;
  92.    }
  93.    else
  94.    {
  95.       this._alpha = 25;
  96.    }
  97. };
  98.